#ifndef     __CAN_FRAME_H
#define     __CAN_FRAME_H

#include <stdint.h>

namespace conn {

struct CANFrame {

    uint16_t id;
    uint8_t len;
    uint8_t buf[8];

    inline uint8_t dst() const {
        return id >> 8;
    }
    inline uint8_t src() const {
        return id;
    }
};

}


#endif
